package com.bwie.controller;

import com.bwie.service.OrderService;
import com.bwie.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: TaoShiHao
 * @Date: 2025/4/21 16:24
 * @Description:
 **/
@RestController
@RequestMapping("/order/index")
@Api(tags = "订单管理")
public class IndexController {
    @Autowired
    OrderService  orderService;

    @PostMapping("/getOrderById/{id}")
    @ApiOperation(value = "根据订单ID获取 订单信息")
    public R getOrderById(@PathVariable(name = "id")Integer id){
        
        return orderService.getOrderById(id);

    }

}
